<layout name='layout' />

<div class="admin-main">

	<blockquote class="layui-elem-quote">

		<button class="layui-btn layui-btn-small" onclick="openModel('<{:U('Option/add')}>','添加','600px','300px');">
			<i class="layui-icon">&#xe608;</i> 添加字段
		</button>

		<button class="layui-btn layui-btn-small" onclick="window.location.reload();">
			<i class="fa fa-refresh"></i> 刷新
		</button>

		<button class="layui-btn layui-btn-small layui-btn-danger" id="delBtn">
			<i class="fa fa-close"></i> 删除
		</button>

		<div class="search">
			
		</div>
	</blockquote>

	<fieldset class="layui-elem-field">
		<legend>数据列表</legend>
		<div class="layui-field-box">
			<form id="ajaxForm" method="post" action="<{:U('Option/del')}>">
			<table class="site-table table-hover">
				<thead>
					<tr>
						<th style="width: 50px"><input type="checkbox" id="selected-all"></th>			
						<th>名称</th>							
						<th>英文</th>							
						<th style="width: 150px">添加日期</th>
						<th style="width: 150px">更新日期</th>
						<th style="width: 150px">操作</th>
					</tr>
				</thead>
				<tbody>
					<volist name="list" id="vo">
					<tr>
						<td><input type="checkbox" name="selectedids[]" value="<{$vo.id}>"></td>
						<td><{$vo.name}></td>
						<td><{$vo.value}></td>
	              		<td><{$vo.createTime|date='Y-m-d H:i:s',###}></td>
	              		<td><{$vo.updateTime|date='Y-m-d H:i:s',###}></td>					
						<td>							
							<a href="javascript:;" onclick="openModel('<{:U('Option/edit' , array('id'=>$vo['id']))}>','编辑','600px','300px');" class="layui-btn layui-btn-mini">编辑</a>
							<a href="<{:U('Item/index' , array('cate'=>$vo['id']))}>" class="layui-btn layui-btn-mini">字段选项</a>
						</td>
					</tr>	
					</volist>						
				</tbody>
			</table>
			</form>
		</div>
	</fieldset>
</div>